
public class Item implements Comparable {
	private double score;
	private String name;
	public int count=0;

	public int compareTo(Object o) {
		return count-((Item)o).count;
	}
	
	public Item(double score, String name) {
		this.score=score;
		this.name=name;
	}
	
	public void setName(String name) { this.name = name; }
	public String getName() { return name; }
	
	public void setScore(double score) { this.score=score; }
	public double getScore() { return score; }
}
